package com.ruoyi.common.entity.TransactionEntity.VO;

import com.ruoyi.common.core.web.domain.BaseEntity;




public class SpuVO extends BaseEntity {
    private Long id;
    private String name;
    private String brandName;
    private String unit;
    private String description;
    private String imageUrls;
    private String barcode;
    private String isActive;
    private String delFlag;

    public SpuVO() {
    }

    // 关联字段
    private Long categoryId;
    private String categoryName; // 🟢 新增：分类名称

    // 可根据需要添加更多字段


    public SpuVO(Long id, String name, String brandName, String unit, String description, String imageUrls, String barcode, String isActive, String delFlag, Long categoryId, String categoryName) {
        this.id = id;
        this.name = name;
        this.brandName = brandName;
        this.unit = unit;
        this.description = description;
        this.imageUrls = imageUrls;
        this.barcode = barcode;
        this.isActive = isActive;
        this.delFlag = delFlag;
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(String imageUrls) {
        this.imageUrls = imageUrls;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getIsActive() {
        return isActive;
    }

    public void setIsActive(String isActive) {
        this.isActive = isActive;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }
}